package cn.chenhao.order.service;

import cn.chenhao.basic.service.IBasicService;
import cn.chenhao.basic.util.PageList;
import cn.chenhao.order.domain.AdoptOrder;
import cn.chenhao.order.query.AdoptOrderQuery;
import cn.chenhao.user.domain.Logininfo;

import java.util.Map;

public interface IAdoptOrderService extends IBasicService<AdoptOrder> {
    String submit(Map<String, Object> params, Logininfo currentLoginInfo);

    // 平台管理查询领养订单业务
    PageList<AdoptOrder> admin(AdoptOrderQuery query, Logininfo currentLoginInfo);

    // 主站用户查询自己订单业务
    PageList<AdoptOrder> user(AdoptOrderQuery query, Logininfo currentLoginInfo);

    // 删除定时任务
    void deleteByQuartz(Long orderId);
}
